/**
 * 存放定位信息
 */
const state = {
    all:{
        addressComponent:{
            adcode: '',
            city:'',
            citycode:'',
            country:'',
            district:'',
            province:'',
            street:'',
            streetNumber:'',
            township:'',
        },
        formattedAddress:'正在定位.....',
        position:{
            Q: '',
            R: '',
            lat: '',
            lng: '',
        },

    }
}
// getters
const getters = {}

// actions
const actions = {}

// mutations
const mutations = {
    setLocation(state, all) { //设置参数
        state.all = all;
    }
}

export default {
    namespaced: true,
    state,
    getters,
    actions,
    mutations
}

